﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace POS
{
    public class Menu
    {
        

        public Menu()
        {
            this.Foods = new List<Food>();
        }

        public List<Food> Foods { get; private set; }

        //Needs to be checked! 
        public UIElement Render()
        {
            var list = new ListBox();

            foreach (var food in this.Foods)
            {
                var renderedFood = food.Render();
                var listFoodItem = new ListBoxItem();
                listFoodItem.Content = renderedFood;
                list.Items.Add(listFoodItem);
            }

            return list;
        }
    }
}
